<script>
export default{
    data(){
        return{
            str:'hello',
            list:[],
            obj:{},
            cou:0,
            a:0,
            b:0,
            c:0
        }
    },
    methods:{
        add(){
            console.log("这是一个add方法")
        },
        del(){
            console.log("this is a del funcion")
        }
    },
    computed:{

    },
    watch:{

    }
}
</script>
<script setup>

</script>

<template>
<h1>选项式API-Demo11</h1>
<input v-model="a" type="number"/> +<input v-model="b" type="number"/>={{a+b}}
</template>

<style scoped>
</style>
